const { Sequelize, Model } = require('sequelize')
const { sequelize } = require('../../core/db')

class Message extends Model {}

Message.init({
  id: {
    type: Sequelize.INTEGER,
    autoIncrement: true,
    primaryKey: true
  },
  content: Sequelize.STRING(600),
  name: Sequelize.STRING(30),  
  tel: Sequelize.STRING(30),
  QQ: Sequelize.STRING(30)
}, {
  sequelize
})

module.exports = Message